Nifty python based json formatting