Make sure port is an int
Merge pull request #2 from psav/twisted

Make sure port is an int