made iAnimation work with python 3