Python for collecting resource via HTTP