simplification of main.py
fix resize of trigonometric polynomials in homogenize/matvec.py