PyTNL works with legacy matrix implementation

Edited by Jakub Klinkovský