another fix for saving settings(python2 and python3 compatibility)