Python Write No Such File Or Directory