A hypothesis test asks whether data are surprising if a claim is true. The claim is the null hypothesis: here, that loaves average 800 g. The alternative is what you'd conclude instead: the mean differs from 800 (two-sided), or is below it (one-sided, "less").
The t statistic measures how far the sample mean is from 800 in standard errors. The p-value is the probability of a result at least that far out if the null were true. A small p-value (below a level alpha chosen in advance, usually 0.05) means the data would be unusual under the null, so you reject it.
In SciPy: stats.ttest_1samp(w, 800) returns the statistic and p-value; alternative='less' or 'greater' makes it one-sided. Choose the tail from the question before you look at the data.
A p-value is not the probability that the null is true, and "not significant" does not prove the null.
A one-sample t-test against the label weight.