Python script to fetch content of web documents