title: convert RGB values to equivalent HSV values using python
body: <p>I want to convert RGB values to HSV using python. I got some code samples, which  gave the result with the S and V values greater than 100. (example : <a href="http://code.activestate.com/recipes/576554-covert-color-space-from-hsv-to-rgb-and-rgb-to-hsv/" rel="noreferrer">http://code.activestate.com/recipes/576554-covert-color-space-from-hsv-to-rgb-and-rgb-to-hsv/</a> ) . anybody got a better code which convert RGB to HSV and vice versa  </p>
  
  <p>thanks</p>