A simple python script for extracting links