fix TypeError on multiplying sequence by non-int of type 'float' in Python 3

Error occurred with Python 3.3.3
Merge pull request #2 from livibetter/fix-non-int-py3

fix TypeError on multiplying sequence by non-int of type 'float' in Python 3