rest json importer py script rough draft