Added basic unit tests for Python library
Use constant time comparison for HMAC in Python to prevent timing attack