Variable Polytropic gas cosmology