ported most lecture notes to python3

like last pull-request, but merge to other branch.