Automatically discover python version