move rat.py to folder rat/
change import position in upgrade.py