Fix to be compatible with py2.7.7 as well.

I upgraded to python 2.7.7 today and the _get_handles call now returns an value (to_close) which needs to be passed to _execute_child. This patch worked on both 2.7.4 and 2.7.7