PyUnicode_AsStringAndSize should only be defined on python 3
Do not import pycurl globally.

Doing this prevents appmanager from being run in a clean python environment.
Merge pull request #86 from p-push/fixes

Various fixes