more specific exceptions for check_signature
:better exception handling / messaging
PEP8