Be careful to use integer division
The 'file not found' exception was not being raised in the correct place on Windows due to some sketchy use of os.path.splitdrive