sample framecat implementation in python