Python tasks and questions