Python Open File Create Directory