Make things work on python2.7

- Declare a # coding: utf-8 for a file that had unicode comments
- Remove the , * arg (python-3 specific disallowing of positional args)
- Handle some unhandled exceptions when setting size, passing unicode to mosquitto
- Fix some pyflakes warnings