Update api.py

Use default values for socket binding if the config file does not contain user specified values.