Main algorithm in python3
Imposter generation in python2