Adjust python script for resource-assignment