[#1404] minor revision of last commit, avoid char subscript for array
[#2037] needed the print function from future and strings instead of bytestrings