modified for python3.3 SimpleQmap/state.py
adapted python3
adapted python3
adapted python3