Contributed patch for the code to be more pythonic and Python 3.x compatible
Project link: https://github.com/captn3m0/hackertray/pull/19