stable working python version of card extractor