Fixed duplicated imports

Made geysign.sh script workable again for improved logging
Fixed conflict between dict.KeyError and key.KeyError