I created notepad.ui the file in Qt4 Designer and tried to create the notepadwindow.py file by means of a command
pyuic4.bat notepad.ui -o notepadwindow.py
As a result I got the following error
Traceback (most recent call):
File "C:\Python27\Lib\site-packages\PyQt4\uic\pyuic.py" line 31, in <module>
from PyQt4 import QtCore
Import Error: DLL load failed: %1 then something strange on a different encoding Win32.
.uifile dynamically.