ch01 done for python
ch01 beta for scala; need to close resources in finally clause
fix stupid mistake
ch01 done for scala