some slight codes in Python to help you.