Update daemon.py
Update daemon.py

Formatting and more cleaning up.

KNOWN ISSUES:
1. Using 'join' gives an API Error 0021: Unexpected API Failure - list index out of range
2. Sending an attachment gives: ('Message Status:', 'API Error 0015: The length of ackData should be 32 bytes (encoded in hex thus 64 characters).', '\n')
Lvl4Sword/PyBitmessage-CLI