disable automagic redirection for API requests
http://bugs.activestate.com/show_bug.cgi?id=99447