Repo reorganization

Library code, scripts, and test data are separated according to a typical Python package structure. Also added a .gitignore file for Python projects.