More hardy implementation of get_function_code and get_function_docstrings