MongoDB not connecting with pymongo giving this error: [Errno 54] Connection reset by peer

Sounds like a bug in PythonAnywhere. Have you filed an issue with them?