#!/usr/bin/env python

# example base.py

import gtk
import pygtk
pygtk.require('2.0')

class Base:
    def __init__(self):
        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
        self.window.show()  

    def main(self):
        gtk.main()

print __name__
if __name__ == "__main__":
    base = Base()
    base.main()
#!/usr/bin/env python

# example base.py

import gtk
import pygtk

pygtk.require('2.0')

class Base:
    def __init__(self):
        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
        self.window.show()  

    def main(self):
        gtk.main()

print __name__
if __name__ == "__main__":
    base = Base()
    base.main()

sort import statements