A somewhat OCD nitpick: here and below, there aren't spaces around ``**``.  PEP8 technically calls for spaces around all operators, including the power operator.  I realize this is somewhat a stylistic choice based on how it's normally written mathematically, though, so I just wanted to make sure this wasn't an accident.