updated server.py to create dir if not available

fix #2