Correctly import configparser on python 3
Use python 3 print syntax
Don't use deprecated long syntax
Merge pull request #464 from Adys/master

Python 3 fixes