Python and Recovery

This request fixes memory leak in AsyncResult.connect from Python binding. Also it fixes and optimizes deep_merge.