Changes for Python3:
- 2to3 (changes mostly print statements to print functions)
- subprocess module Popen needs "byte" instead of "string" data
  (used str.encode)