It is found in tropical and subtropical deciduous forests, grasslands, savannas, and scrub forests, as well as in the hilly country on the slopes of the Himalayas, at altitudes ranging from sea level up to 3000 meters .