Getattr Function In Python With Parameters