Python script for getting information about viability of flipping items