@classmethod
def load(cls, filename, store_password, try_decrypt_keys=True):
    """
        Convenience wrapper function; reads the contents of the given file
        and passes it through to :func:`loads`. See :func:`loads`.
        """
    with open(filename, 'rb') as file:
        input_bytes = file.read()
        ret = cls.loads(input_bytes, store_password, try_decrypt_keys=
            try_decrypt_keys)
    return ret
