An attempt at converting Hexpress into Python