def safeCompile(string, filename, mode='exec', flags=0, dont_inherit=0):
    """
    Compiles a string into Python code object dealing with some issue that
    can happen with /r values in the file
    """
    return compile(string.replace('\r', '') + '\n', filename, mode, flags,
        dont_inherit)
