Ok that does seems to work alot better. Now when I use that in my maintenancemode.py script I get this error:
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): tstnimump01
DEBUG:urllib3.connectionpool:http://tstnimump01:80 "POST /rest/maintenance_mode/Domain/Development/tstnimbus01/add_schedule HTTP/1.1" 404 967
DEBUG:root:The status code from the create mm schedule call was 404
But when I go to just the URL you gave me I do not get the 404 anymore. Any ideas?