Code:
>>> from scipy.stats import chi2
>>> chi = chi2.isf(q=0.05, df=1)
>>> chi
3.8414588206941245