Python homeworks