python3 compatibility effort

see #7