Added contracts to consumer.py