(Python) Code worked once and now it's 401:Unauthorized

Ok, so the problem is not in the code. When I try to check any of my tokens with GET on https://api.twitch.tv/kraken/?oauth_token=, it says "token":{"valid":false,
So how come they are invalid from the start? I just made new application, got new token and 1 second later, when I check, it’s invalid