Exact solution of the p x + i p y pairing Hamiltonian by deforming the pairing algebra