Why is my bot sometimes (about 5% of the time only) time out but only due to game_map.get_frame(). See the attached image. Initialize params is only getting all the frames. The total execution of my turn is over 1 sec but due to get_frame taking over a sec alone.
starttime = time.time() start = time.time() game_map.get_frame() moves =  end = time.time() time_4 = float(end - start)