Hacked together script for grabbing CFHTLS images and catalogs