Check footprint type on Python

Using the Nightly new pcbnew API, how to check if a footprint is SMD, PTH or is just a drawing (with pads)? Is it by using the ft.GetAttribute()? But with which value should I compare?

It returns a bitmask with bits defined here
Example how to check for a bit

Thanks, this help a lot together with your last code to expose the internal field to Python.