Commands.py imports many modules, and some of them are quite heavy. Rather than importing them all at the beginning, it would make more sense to move the imports into each of the command functions, and only make the import calls at the necessary moment. Thus, a bunch of modules won't be loaded for a command that doesn't require them.
Commands.py imports many modules, and some of them are quite heavy. Rather than importing them all at the beginning, it would make more sense to move the imports into each of the command functions, and only make the import calls at the necessary moment. Thus, a bunch of modules won't be loaded for a command that doesn't require them.