return python objects from commands, and display them as json