It looks like the "name" keyword was updated to "newname", but the references to "name" in the function weren't updated: https://github.com/MAVENSDC/PyTplot/blob/matplotlib-backend/pytplot/tplot_math/pwr_spec.py