a refactorized version of the python code for action recognition studies