implementing list comprehensions
use extend to add list and slice to copy a list
improved some loop
Merge pull request #9 from languageguide/python-best-practice

Python best practice