Updated from PyCharm boilerplate.