att_type not properly checked
added the reading package from xml

1. imported createPackageFromXml.py from other code
2. adjusted it to match the pep8 requirements that Mike has used for
moccasin (we may as well be consistent)
3. adjusted reading code as necessary