seperate pull and format into two python scripts