This tutorial explains the use of the pyopus.design module for designing a Miller opamp.
pyopus.design
10.5.5. Customization example: generating MOS mismatch parameters
10.6.1. Simulator input files (Spice Opus)