Work around invalid import.

  We can't import xmlsec1, but we need the functionality in the Pysamlsp class.
  Move the methods that we can use up to a base class and inherit from that in
  our code.