One easy trick they don’t want you to know about: stop importing dependencies. You probably don’t actually need numpy. You probably don’t need requests. The stdlib is incredibly broad.
This doesn’t always work, of course (especially for large projects), but for smaller ones, it absolutely does.
This doesn’t always work, of course (especially for large projects), but for smaller ones, it absolutely does.