Python: fixed memory leak and GC problem with using connect to AsyncResult.