def METHOD_NAME(python, cmdline, runas=None):
    """
    Execute a python command with pyenv's shims using a specific python version.
    CLI Example:
    .. code-block:: bash
        salt '*' pyenv.do_with_python 2.0.0-p0 'gem list bundler'
        salt '*' pyenv.do_with_python 2.0.0-p0 'gem list bundler' deploy
    """
    if python:
        cmd = "PYENV_VERSION={} {}".format(python, cmdline)
    else:
        cmd = cmdline
    return do(cmd, runas=runas)