pep8

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>
better euristic preferred name determination

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>