Improved bar.py.
Handled nlocal + nghost atoms in a coherent way (testing)