[#706] PEP8 Compliance

If you want me to actually remove the changes from `dht.py`, `market.py` and `transport.py` let me know.
I can also add a test for PEP8 compliance.
I don't think multiline is against pep8, I just didn't see that style of import anywhere else so I switched it to maintain consistency.