using urllib to extract path from s3 location