Use libc.math.atan2
Miscellaneous fixes and improvements
Merge pull request #2 from ahojnnes/ellipseht_heapq_fix

Ellipseht heapq fix