The generateToken request for a new portal token is sent after a 5-minute delay when connecting to an ArcGIS Enterprise portal using the ‘GIS’ module in ArcGIS API for Python.
The developer team is unable to reproduce the issue using ArcGIS API for Python 2.4.1. Please try with ArcGIS API for Python 2.4.1.
If the issue persists, contact Esri Technical Support.