Updated the Python interface of the ElementTypeMap
The map now also specifies the keep alive flag for the map. Thus the map is now keep alive as long as a reference to the map exists.