Python Recursive Function For Tower