fix of lib/utils.py: missed 'import errno' added
refactor of mysql.py, now it uses is_sockfile method from utils.py