FreeRTOS TCP IP implementation on STM32F767ZI

No, the FreeRTOS code may be consistent. Your Python code definitely has a problem.