add support for explicit version handling with ensure parameter for pip packages

as per subject. let me know if theres any compatibility issues anticipated.