BitTorrent tracker in Python with Flask and MongoDB