1: Check out urllib or urllib2 2: Check out commands 3: Usually /usr/bin/ but that might depend on your dist.