Fix for stats.mode to work on character arrays. Closes #3814
Fix pyflakes complaints on whitespace, mark test as knownfailureif python 3 (relates to open numpy issue)
Merge pull request #3857 from pfctdayelise/master

Fix for stats.mode to work on character arrays. Closes #3814