[Python] Add Python version checking for cookbook (Python 3.2+)