A class generator written in python