pyranha: port to the new degree methods.

Also a compile fix in polynomial integration after the recent changes.