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:<p><a href="http://developer.saaspass.com/" rel="nofollow">http://developer.saaspass.com/</a>