Fixed TypeError exceptions by using .format().

Before, strings were being concatenated by using +, which doesn't force
variables into their string representations.
Merge pull request #7 from nfvs/fix_type_errors

Fixed TypeError exceptions by using .format().