Python implementation of the TDVP algorithm