A Python conversion of the Rom Dikurivative codebase, by Davion.