fix: Made python3 compatability changes

Added a try and except structure to load cpickle for python2 and pickle for python3. Also checked some print and except statements for python3 compatibility.