Assembly Line Scheduling Dynamic Programming In Python