Update main.py

Fix a little bug for python 2.7.
'string' * float(x) seem to work with python 3.x, but it doesn't with 2.7 (not at my system at least).
So i added some int() s.
Merge pull request #7 from PoorLonesomeCoder/fix-main-for-py-2.7

Update main.py for py 2.7 compatibility