Python mimic classes