Fix py3 issue with command module

This caused us to fail to log lines when running commands on
localhost (because in that situation, we use python3).

Change-Id: If9f5cf6ed62cb24a6fc16ebf189d36a752fa66d5
1 file changed