Pk.py updated for quadrupole