Python code and tests for the post 'Programming with Finite Fields'