fix sometimes python cachelist problem