Update MiHive.py

Hi
Just read your code and noticed that you had login and not logout as the end I have change the python code hope this is ok.
Regards
MattMan