Update: This is an outdated and nonworking method of unlocking AT&T iPhones. AT&T has since released an easier official way of unlocking any device.
As...
Even after your contract is over, AT&T has always refused to unlock any iPhones ever since they were the only carriers to officially offer the iPhone...