ast.parse(source, filename='<unknown>', mode='exec') # is equivalent to compile(source, filename, mode, ast.PyCF_ONLY_AST)