page.open() doesn't work for local files

I was not able to use Tempfiles as input: page.open() failed on opening local files. Using a file:// prefix didn't fix this. So I wrote this patch that used the filesystem module to open the file if it has a file:// prefix.