Convert Python Code To Parallel Programming