def list(): shortcuts = Shortcut.all() for keyword, path in shortcuts: print("Keyword: {0}, Path: {1}".format(keyword, path))