Python Open Error Handling