Fixed Python3 bug in assign_elements_from_atom_names() function.

3 jobs for master