How to run two functions in parallel in Python