[Python Trik Test] Fixed errors in changing registers values