Core python program for smartlink