Python 3 Fixes: Replace missing builtins

There are a few different missing builtins in python3 that we're using.
This shows up when running tox pep8 under python3 which is needed for
the streamer work.

Change-Id: I1b2ef0b7bdcd1a85895576682455745fe06e880b
diff --git a/tox.ini b/tox.ini
index 79ea939..443cc1a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -18,6 +18,8 @@
   python setup.py testr --slowest --testr-args='{posargs}'
 
 [testenv:pep8]
+# streamer is python3 only, so we need to run flake8 in python3
+basepython = python3
 commands = flake8 {posargs}
 
 [testenv:cover]