fix bug with loose icon in preferences dialog
add lib/utilities.py file for utilities
lib/config pep8 style adaptation