Here's an example of my problem :
class bar() :
spam = foo()
def test(self) :
print self.spam.eggs
pass
class foo() :
eggs = 50
The issue (I assume) is that I'm trying to create an instance of a class before the class is defined. The obvious solution is to re-order my classes, but I like to keep my classes in alphabetical order (maybe a silly practice). Is there any way to define all my classes simultaneously? Do I just have to bite the bullet and reorder my class definitions?