Using Python in labeling and field calculations