updated python templates, automatically assumes file is a class