Are you writing QtWidgets or QtQuick in Python? My understanding is that QML is mandatory for QtQuick apps.
I use QtWidgets. I've never touched QtQuick.