Fix spurious test failures in py:twisted

- py.twisted/test_suite.py:ThriftTestCase.testOneway relies on
  testOneWay executing in less than 0.04 seconds (since it sleeps for 2
  seconds, then asserts that 2s - <time> ~= 0). On slow, or loaded
  machines this may fail. Switch this to sleep for 1 second, then have a
  tolerance of 0.4s for the deferred resolution.

- Removes a dud return d from testOneWay.

- Remove '*' import & dud 'import random'. This file now passes
  pyflakes.

- Strip trailing whitespace

Jira: THRIFT-2657