functional standalone python script