[python] More Pythonic Way to Run a Process X Times