mspython: mapscript.msCleanup() now requires a parameter; also fix ogr_query.py to work properly with recent OGR versions