adding cardinal2int, moving to Python 3 (wip)