fps command

def fpsInformation(self,args):
        '''fps command'''
        invalidStr = 'Invalid number of arguments. Usage horizon-fps set <fps> or horizon-fps get. Set fps to zero to get unrestricted framerate.'
        if len(args)>0:
            if args[0] == "get":
                '''Get the current framerate.'''
                if (self.fps == 0.0):
                    print('Horizon Framerate: Unrestricted')
                else:
                    print("Horizon Framerate: " + str(self.fps))
            elif args[0] == "set":
                if len(args)==2:
                    self.fps = float(args[1])
                    if (self.fps != 0):
                        self.sendDelay = 1.0/self.fps
                    else:
                        self.sendDelay = 0.0
                    self.msgList.append(FPS(self.fps))
                    if (self.fps == 0.0):
                        print('Horizon Framerate: Unrestricted')
                    else:
                        print("Horizon Framerate: " + str(self.fps))
                else:
                    print(invalidStr)
            else:
                print(invalidStr)
        else:
            print(invalidStr)