Cleaned GenMatrix.py

Changed no external behaviour.