Have you taken a look at the more different usable MFA products out there like SAASPASS? I work for an IAM consultancy and we integrate SAASPASS mfa and IAM products.
Here is the developer link and there is also a Python codebase as well as mobile SDKs:
http://developer.saaspass.com/