python study demo for closure, decorator, message queue and process