Line 627: for extension_name, extension_field in iteritemsextension_dict): SyntaxError: invalid syntax Remove the extra ')' from the end of the line.