rTorrent Downloader - fixes to scgi on Python 2.6

This should hopefully fix rtorrent scgi on Python 2.6.

@jkaberg can you confirm this is working before it is merged?