Solutions to tasks on python for backend