use python 3 print syntax

(with from __future__ import print_function for 2)
port c glue to python 3 and keep python 2 support
support python3 binary while working with pytohn2 str
port edsig to python3, keeping python 2 support