Modify ugly code to beautiful code.
Update python data analysis from chapter1 to chapter8.