Agent penalties

Please keep first-level imports (like "import time" here) at the beginning of the list of imports