ENH: Reasonably functional pyspec to python translation script