pep8 + fixing format/type in published messages