Unix tail follow implementation in python