remove unused lines
fix keyword args not explicitly specified bug

fix the bug that nosetests will generate unexpected html file, it's
clean now.