Bandwidth tracker implemented in python