Python fixes and randomise seed values in TCRM setup