updated server.py
Fixed file list function