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

Rather than bugging you again, I decided to add the last methods I needed myself.