Added auto-restarting after an hour, replaced tabs with spaces in ws.py