python code for keeping track of blogs