Fixed importing ptwit in tests.py