DRY the urllib/local file thing