expanded newpy