>>> import sys
>>> sys.path
#!/usr/bin/env python
import PyQt4
print dir(PyQt4.QtCore)
ks@ks:~$ python xz
Traceback (most recent call last):
File "xz", line 3, in <module>
print dir(PyQt4.QtCore)
AttributeError: 'module' object has no attribute 'QtCore'
#!/usr/bin/env python
import PyQt4
import PyQt4.QtCore
print dir(PyQt4.QtCore)