Update main.py

Set default host to localhost.