with open('all.json') as user_file:
users = json.load(user_file)
FileNotFoundError: [Errno 2] No such file or directory: 'all.json'
import sys
import os
script_dir = os.path.dirname(sys.argv[0])
with open(os.path.join(script_dir, 'all.json'), 'rt') as jsonfile:
data = json.load(jsonfile)