I saved a function as hypotenuse.sobj and it shows up in the local directory listing. Then I tried load("hypotenuse.sobj") and get this error:
AttributeError: Can't get attribute 'dist' on <module 'sage.all_cmdline'="" from="" '="" opt="" sagemath-9.1="" local="" lib="" python3.7="" site-packages="" sage="" all_cmdline.py'="">