Backward compatibility support for Python 2.6 and under

I see non-zero length field names({0}, {1}, ...) on other codes but somehow zero length field names were in virtsocket.py...