fixing pymode