changed looprate template for python according to #89, fixes #89