'Returns the number of slots open at the moment'

@provide_session
def open_slots(self, session):

    used_slots = self.used_slots(session=session)
    queued_slots = self.queued_slots(session=session)
    return ((self.slots - used_slots) - queued_slots)
