Added a shared function for broadcasting to the msghub.  Fixed pep8 issues.