updated server.py to use os to check file and directory existance rather than hardcoding the existing files