Implement Python testing rig. Closes #23.