It would be nice to add an __eq__ method to the SP so that you can check if `sp1 == sp2` rather than using this function.