port to python3
cleanup and add porting note