some changes to get python coding working well