added a missing @staticmethod decorator at ops.tdiff
minor pep8 fixes