Updated Python

Just a straightforward adaptation of the `python2-randegd.diff` patch for the 2.7.9 version.