I'm writing a thesis class file and I'd like to delay the running of code to after a specific package is loaded:
\AtEndOfOtherPackage{listings}{%
\lstset{language=Python}}
Is there a command that already exists for the task? If there isn't, how could it be effected?