Jump Trading interview question

Write a TWAP in python