fix bugs for Python packages (generic, numpy, python-meep)