Implement Pow.get_base() and get_exp()
Fix a hack in Python wrappers