Was treating space_out as if it had tuple keys, which is incorrect. Mistake has been remedied.