Make encoding only for python version < 3
Created by: jmborr
Description of Work:
-
Utility function for encoding a string when python version < 3 -
substitute the calls to str.encode()method with the utility function
Created by: jmborr
Description of Work:
str.encode() method with the utility function