Bugfix: de-duplicate definition of assign_ids_by_period

The Python taskmodel implementation, TaskSystem, has multiple
definitions of assign_ids_by_period(), where one of them actually
assigns IDs by deadline. This patch renames the method accordingly.