Changed entities from python string to json