Fix a test so it works under Python 3
Add ability to generate "horizontal" coordinates