Add util.py

Signed-off-by: Eli <Eli@raspberry>
add util.py