I tried to figure out (as tester) why atomac version 1.1.0 gave error httplib.BadStatusLine: '' when running from script.
When running from command line it worked very well : getwindowlist(); getobjectlist().
Well... I couldn't . So having a machine with Xcode installed I did upgrade for atomac from git:
git clone https://github.com/ldtp/pyatom.git
And the problem disappears :)