minor changes to shortngs.py