Remove some debug output.
njportfolio.py will return the best solution found so far if we're about to timeout.

Also: custom total_seconds to work around lack of timedelta.total_seconds() in python 2.6