turn a magnet link to a link to a torrent file

def to_torrent(magnet_link):
    """turn a magnet link to a link to a torrent file"""
    infoHash = parse_magnet(magnet_link)['infoHash']
    torcache = 'http://torcache.net/torrent/' + infoHash + '.torrent'
    torrage = 'https://torrage.com/torrent/' + infoHash + '.torrent'
    reflektor = 'http://reflektor.karmorra.info/torrent/' + \
        infoHash + '.torrent'
    thetorrent = 'http://TheTorrent.org/'+infoHash
    btcache = 'http://www.btcache.me/torrent/'+infoHash
    for link in [torcache, torrage, reflektor, btcache, thetorrent]:
        try:
            print "Checking "+link
            response = requests.head(link, headers=HEADERS)
            if response.headers['content-type'] in ['application/x-bittorrent',
                                                    'application/octet-stream']:
                return link
        except requests.exceptions.ConnectionError:
            pass
    return