The great benefit of knowing the command-line is being able to write scripts to analyze scripts, all in ~1 minute.

Add to your .bash_profile.

# get list of objects and functions in a python file
alias python_structure="perl -ne'print if /\\b(?>!:)(class|def)\\s/'"