Generalizes common digit power ffunction in Python