Pavlovia Stuck in Initializing

You have a lot of import statements in the beginning, those are most likely the ones that are giving you problems. See this post: Experiment stuck on initialising - Pavlovia