Yes , it is a python bug , due to this isseu https://bugs.python.org/issue33329 , it got fixed in 3.6.6