python buggy to get images from a url.