Fix the display of functions with keyword-only arguments on Python 3.
Merge pull request #5125 from takluyver/inspect-definitions-kwonly

Fix the display of functions with keyword-only arguments on Python 3.