How can I use the value of a slot set by custom actions to execute a python code within the custom action code?

I am new in rasa and am facing a problem while trying to execute a python code imported into the To execute the python code it needs a value that it will get from the tracker.get_slot(“value”) and utter the result. But when I run the “rasa run actions” command it stucked like the below-

rasa run actions 2022-06-24 12:21:14 INFO rasa_sdk.endpoint - Starting action endpoint server…

Here is my file: from typing import Any, Text, Dict, List

from import SlotSet

from rasa_sdk import Action, Tracker

from rasa_sdk.executor import CollectingDispatcher

import pandas

import onemax

from onemax import *

class ActionAskParameter(Action):

def name(self) -> Text:

     return "action_ask_parameter"

def run(self, dispatcher: CollectingDispatcher,

         tracker: Tracker,

         domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:

    parameter = tracker.get_slot("param")




    return [parameter]

param = run()

g_a(om, n_bits, n_iter, n_pop, r_c, param)

print(‘f(%s) = %f’ % (best, score))

Any help is highly appreciated.