The QVariant type doesn't exist any more so any methods returning QVariant will be auto converted to Python types. You no longer need to convert the return type using the toXXXX methods.
Remove all:
toString() toList() toInt() toFloat() toStringList() toByteArray()