Fix read mode for pyc files

Now all test should pass on travis.