Add a test for #31

The bug can be reproduced!
Drop python 2 support

In preparation for the next version of pyQode which completely drop
python2 support for the gui part.
Fixes #31
Prepare release 2.3.1
Finish 2.3.1