In the process of making a control maker for python, I found it super annoying to manually figure out the command for a curve. This script will take the selected curve and return the command in python. SO MUCH EASIER.
Just run the script and type makePythonCommand("New Curve Name"). It should print out the commands for all curve types as well as transforms selected with multiple shapes under it.