remove unneeded print statement
fix a bug with the mock_open implementation