Reduce python initialisation code before starting again