rest/status - various bug fixes

After running pycharm inspections