Update server.py

Adding dynamic port assignment