A simple Python balanced ternary module, for educational purposes.