[INIT] migrate the code to php, fuck python