Your question is very vague, but basically, you're going to have to do it by hand. A Google search on this topic has plenty of discussion, although you're welcome to bring up anything more here if you wish.
Due to the reasons discussed here
we will be moving to python-forum.io
on October 1, 2016.
This forum will be locked down and no one will be able to post/edit/create threads, etc. here from thereafter. Please create an account at the new site to continue discussion.