Python PHP code generator