Phase space files utilities, python