Add comments to auto_open references

Describe why we are looking at conn.auto_open
use getattr to read conn.auto_open

Since appengine (and possibly other) environments may not have
the conn.auto_open attribute, don't rely on its presence.