According to https://docs.python.org/3/library/code.html#code.interact, this was added in Python 3.6.