Update pyutils
Output thetas to csv file