Use user object and dmutil to verify inputs. Update to PEP formatting.