SageCmd cannot be run in command mode, need to fix
Add doctest