Python Save Dictionary As Text File