pep8, add cocs
correct syntax error
rename function
raise an exception when a commit() fails
pep8 test_search.py, modify import
Merge pull request #11 from dfdeshom/refactor-search

Refactor search