Steps to replicate the issue:
What happens?:
Both javascript and python implementations fail the testcase:
JS error: "bigint are forbidden in JSON.stringify"
Python error: "Could not serialize input Python object: Fraction(1, 1)"
What should have happened instead?:
Both implementations shouldn't have failed.