add cmake flags for python3