[FIX] auto_reload bug in server.py

This PR fixes #699