Fix bug in bridge_factory. Add unit test
Merge branch 'snapshot_package' of github.com:pynbody/pynbody into snapshot_package