restructured pasta2geonis.py