Accessing and opening a file in python