Python If Variable Not Empty Matlab Tutorial Image