python script write to file updated -fully working now-