BUG: Modified constructor to avoid PythonQt error because of constructor not properly constructed