python. Removed object type, updated codegen, fixed #267, fixed #277.