Generate Bearer Token Python