Added function to get settings eeasily. Different migration to python
3.3 and some other minor corrections