Be consistent with how we do this elsewhereh
Merge pull request #741 from alex/consistency

Be consistent with how we do this elsewhere
Remove repeated validation conditionals
Change lists to tuples
Use the actual argument names in the exception messages
Move shared parameter checking to a module function
Merge branch 'master' into dsa-api