>> python distribute_setup.py
After the setup has finished successfully, there should exist a “Scripts” folder in your python installation path. E.g.”C:\Python27\Scripts”
>> easy_install.exe pip
Now should have successfully installed the python paketmanager – pip.
>> pip install mobileworks
After the installation succeeded you are able to execute your mobileworks code the following way:
Example file: file1.py
# import the MobileWorks library
import mobileworks as mw
# to switch to the sandbox
mw.sandbox()
# provide your username/password
mw.username = 'username'
mw.password = 'password'
# create a task object
t = mw.Task(instructions="This question is created with Python2.7")
# set some parameters
t.set_params(resource="some_param")
# add the required fields
t.add_field("Name", "t")
# finally, post it and get the url of the newly created task
task_url = t.post()
print task_url
[I had this problem a while ago and solved it this way. You can find my original blog post at http://www.manuelmertl.com/mobileworks-python-windows/]