Improved code (print, source code encodings, self/other in class method)

Please review the following changes