crypto/ps3: Add Python code for PS3 Q8 and Q9.