Python Open File Append Create If Not Exist