move state constant and relevant implementation from core.py to utils.py
move state constant and relevant implementation from core.py to utils.py

freedesktop-unofficial-mirror/ldtp__ldtp2,freedesktop-unofficial-mirror/ldtp__ldtp2,ldtp/ldtp2,MichalPokorny/ldtp2,ldtp/ldtp2,freedesktop-unofficial-mirror/ldtp__ldtp2,MichalPokorny/ldtp2,freedesktop-unofficial-mirror/ldtp__ldtp2,freedesktop-unofficial-mirror/ldtp__ldtp2,MichalPokorny/ldtp2,ldtp/ldtp2,ldtp/ldtp2,MichalPokorny/ldtp2,ldtp/ldtp2,MichalPokorny/ldtp2