Fix errors that current test suite raises

 - Minor reformatting for PEP8
 - Specifying ports in connection URLs is required
Remove unused imports
Revise travis config
Merge pull request #7 from underyx/travis-errors

Make the project pass Travis builds & change Travis config a bit