JWT could not be verified [SOLVED]

I solved it, and just wanted to post it here in case anyone else using python for their back end runs into this problem.

The ‘exp’ field in the JWT must be an integer.

jwt_payload = {
    'exp': int(time.time() + 60),
    'channel_id': str(user_id),
    'user_id': str(user_id),
    'role': 'external',
    'pubsub_perms': {'send': ['*']}
}