Added a signature method to basket abd basket items

and some pep fixes.