Re #275, Try to automatically detect if we can use --exact or not, also some pep8 fixes