fix: some pythons produce longs for the file handles' positions