Very minimalistic symbolic algebra in Python