Removed server.py cruft and gave better blank response
Improved function inputs