convert linux version py3 -> py2

For compatibility with less python3 supportive Linux dists like CentOS.
Needs a load of testing.