totp implementation in Python