#!/usr/bin/python3
""" Initializes module and import"""
from sys import argv
save_to_json_file = __import__('5-save_to_json_file').save_to_json_file
load_from_json_file = __import__('6-load_from_json_file').load_from_json_file


try:
    my_list = load_from_json_file('add_item.json')
except:
    my_list = []

for idx in range(1, len(argv)):
    my_list.append(argv[idx])

save_to_json_file(my_list, 'add_item.json')
