torrents.py script improvements