python code to extract data form wikis