use Python's swap mechanizm