Algorithm Definition In Python For All Selected Lines In Fingernails