upcdb is a Python library that allows you to use the http://www.upcdatabase.org API to get UPC details
from upcdb import UPCDB
upcdb = UPCDB('API KEY')
upc = upcdb.get('UPC')
print upc.name
print upc.description
print upc.valid
print upc.price
print upc.description
print upc.ratingsup
print upc.ratingsdown
print upc.reason
print upc.todict()