conn.py: get Connection<->State to work

See GitHub Issue #72 for details.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>