Openai Spaces for a modified environment
In your case it seems you simply can return a 2D vector and extract out the components for that. You can take a look at the MountainCar example under classic control envs for a fully working case. But something like:

vec_1_low = 0
vec_1_high = 366
vec_2_low = 0
vec_2_high = 1

space_low = np.array([vec_1_low, vec_2_low])

space_high = np.array([vec_1_high, vec_2_high])

obs = spaces.Box(space_low, space_high, dtype=np.float32)


Then:

vec1_obs, vec2_obs = obs.sample()