changed all unix-only dependencies

There were several locations with unix-only dependencies. These were
causing errors when running in a windows console. Wrapped all of these
with try logic. Now it all runs in windows without any errors.
Found it:

In "test_result.py" on line 205:

'run_time' : (self.run_time.seconds + float(self.run_time.microseconds) / 1000000) if self.run_time else None,

What's happening is that if a test runs really fast, the run_time is 0 and thus False and then gets set to None. This is happening because the datetime library, and more specifically datetime.timedelta, only has microsecond resolution. This could be resolved by either using numpy's datetime64 with it's attosecond max resolution or by just changing the 'else' conclusion to 0 instead of None.