Added Python bindings for type() and setType(str) on MapObject.