Ported stuff to Python
Merge branch 'master' of https://github.com/stuydw/matrix