You've got to post the code where principal
comes from. It would seem that principal is a list instead of a number... here look at this example of generating that error:
>>> [ 1,2,3,4] * 0.02
Traceback (most recent call last):
File "<input>", line 1, in <module>
TypeError: can't multiply sequence by non-int of type 'float'
>>>