I wrote a criminally underused library that does much the same kind of transformations: https://github.com/mbarkhau/lib3to6/tree/master/src/lib3to6
(I like and use Gitlab,too, yet the gitlab link is not better because without Javascript it shows a mostly blanc page.)