pep8 and fixes for api and get_host_record

- skaldship.hosts.get_host_record now accepts integers!
- lots of little bugs squashed in api.py
- many pep8 updates in api.py
- sleep eludes me