Move tests and scripts dirs into package dir.
Update Makefile for python-hacking.
Fix flake8 errors.