New utility function to clamp all mtimes of a given path to a certain timestamp. Clamp here means that any timestamp later than the specified upper bound will be set to the upper bound.
This patch was generated by running `autopep8 --diff` on the source tree and then applying the diff.