And since 3.8 the exponent can be negative, which lets you compute modular inverses without having to reimplement the extended Euclidean algorithm.
>>> pow(5, -1, 13)
8
>>> 5 * 8 % 13
1