utils: test if requested attribute exists
utils: test if requested attribute exists

import_from_string now checks if the requested attribute of the imported
module exists. This allows the caller to catch all errors with
ImportError exceptions.

OParl/validator,OParl/validator