def read_credentials(): if not os.path.exists(credentials_file_path): return None with open(credentials_file_path, 'r') as creds_file: return json.loads(creds_file.read())