I have a way of performing this task in shell: How to make kafka consumer to read from last consumed offset but not from beginning
However, I am willing to do this in Python, using kafka-python
I could not find any api for this case.
http://kafka-python.readthedocs.io/en/latest/apidoc/KafkaConsumer.html