Update swapmanager.py

added pi_id