six has methods to get closure and func_code