organize the code in py2.nim, and rename test_mpl to test_pylab