Answers

You define the class PandasHugs early in your code, but later you have:

HugForAPanda = PandaHugs(message=TheMessage)

Notice the singular form of Panda? What you want is

HugForAPanda = PandasHugs(message=TheMessage)

Edit: You also have for PandasHugs in ListOfHugs: in the get() method of your MainPage class. While there is technically nothing wrong with using the class name as a local variable of your method, it is confusing and hides the PandasHugs class in the get() method. Can I suggest something like for hug in ListOfHugs?