bugfix with func_code to __code__