Fixed python style
Used query_position to get the pipeline duration