Fixed pyflakes issues in nbbuild