Some Qt4 examples translated to PyQt4/Python