Unlocking your Nokia Lumia 520 can be done by two ways....
1. Contacting your service provider
2. Using Online service
Online service is recommended as you can unlock your phone from anywhere in the world...I have experience in unlocking my phone with the help of Simpleunlocking.com...