check for Python2.6 only on WIN32; proper closing