Map text/plain to .txt extension, python stdlib is braindamaged here