import socketsolist = [x for x in dir(socket) if x.startswith('SO_')]solist.sort()for x in solist: print x