Replace some deprecated python constructs + Fix PyQt elements search paths