Matrix Product States code, the python way.