bugs in entity.py for signed responses

Hi, I'm using pysaml2 to generate assertions to test an SP and found these when generating signed authn responses.