This issue doesn't sound like Python's fault, but more your IDE. Try factory resetting your IDE / completely reinstalling it from the source. A flashing black screen is also a way you can configure windows to show notifications, I believe. Check that setting as well.