Allow setting 'type' attribute of player objects in Python.
Do not allow modifying type of objects that have custom_attrset.