Refactor n by separating out classes

Extract classes in n out and also create a new script called b to
generate a blog.
Add python egg ignore rule to gitignore