Imported definitions in a module, fixed #349.
Updated PythonGenerator to support abstract Generator.
Updated .gitignore.