Release GIL in python binding in stat_log() method