Add python 3 support for coords