Concurrency Patterns Implemented in Python