[python] How do I parallelize a simple Python loop?