This is an example of how to get unlock your Nokia Lumia 520 from At&t.
http://safeunlock.tk
To input the unlock code you:
1. Input a non accepted simcard into the phone.
2. The phone will ask you to enter the unlock code.
3. Enter the unlock code.
Your phone is now unlocked.