python restructuring