some minor bugfixes
commented out mail functions, as they didn't work on pythonanywhere