Add python version check for ast name node