Make delete-stale-build-files python 2 compatible. There are still places where we use it with python 2.
Pull request: https://github.com/WebKit/WebKit/pull/5474
Closing since we updated the invocations of this script to use python3.