Can python's mechanize use localhost sites?
Yes. It can use any URL available so long as it is reachable. Just make sure it's properly formatted!
Can Mechanize access sites being locally hosted by Apache?