better python as per Eric suggestions