I updated my python to latest version from official python website on recommendation of @stark-jarvis, and that helped me. Thanks @stark-jarvis.