How To Limit Map Function In Python