Release GIL around hdfs calls with network access