Minor changes to some python pieces