implementation of todos in python