[+] migrate methods from pydoc