decode binary to utf-8
add test_connect
fix PEP 8