Added Python 2 compatibility for MAC translation script