sample index.py working

working ish, now need to figure out how to fun python and get data from python and back