Fix suspend in Python way