optimal.py

Signed-off-by: felipelmelo <sliipknott@hotmail.com>