raise a better error on empty poscar strings
Automatic Py3k merge for testing