Improve out_edges time performance by using list comprehensions

See: http://stackoverflow.com/questions/952914/making-a-flat-list-out-of-list-of-lists-in-python
Add .pyc and .DS_Store files to .gitignore
Answer Q1 of Application 1
Fix pylint errors
Answer Q2 of Application 1