QFlags created from enum classes aren't automatically converted from an int value passed by Python code, so we need to create compatibility functions for the older variants which accept plain ints