code: def dec2hms(dec):
      
      DEGREE = 360.
      HOUR = 24.
      MINUTE = 60.
      SECOND = 3600.
      
      dec = float(dec)
      fhour = dec*(HOUR/DEGREE)
      hour = int(fhour)
  
      fminute = (fhour - hour)*MINUTE
      minute = int(fminute)
      
      second = (fminute - minute)*MINUTE
      return (hour, minute, second)
docs: ADW: This should really be replaced by astropy