added mistakenly removed 'parity' function to poscar.py