im currently creating an API that will get some input and return a list of dictionaries in json format, the issue im having is when i want to call my methods, i get an error som