adding more types, putting main function in each generated .py file to show it is valid python