Getting User ID

Why are you performing a subscription lookup where the user_id and broadcaster_id are the same ID?

if it’s not working in python then there is a bug in your python code.