The API attempts to store credentials in /var/root, at least on my OS X Yosemite installation via MacPorts. This (rightly) fails due to permission problems.
Traditionally on OS X this type of thing is stored in something like $HOME/Library/Preferences/com.plotly.plist. Python probably has a good defaults module for it.