Updated python code to ACTUALLY return facility and card IDs