BUG: PyQt4 compatibility