name 'lang' is not defined in server.py:86