added config and python code