unix-like python formula