I'm wondering if it would just be easier to port that code into Python. I expect the need to fix GeoJSON again in the future, so this will come up again. Sadly, I'm not well versed in Node.js enough to really understand how the geojson-rewind code works.