The following code will result in the print statement being executed 

```
class C1(object):

    print 'I am some code executing in C1'

    def method1(self):
        print 'I am method1'
    def method2(self):
        print 'I am method2'
        pass

```

I am surprised by this as I would have thought it would only execute if the class was instantiated, can anyone explain the thinking behind this?