typos + dirname
Merge pull request #33 from jojoo-/master

bufixes, pep8