It is more easier to use the longlat keyword. Check the documentation.
longlat
nside = 256 ipix = 632668 ra, dec = hp.pix2ang(nside, ipix, lonlat=True)