trying to solve dodgy message from urlib