A python implementation of spectral methods for specific bilinear optimization problems.