python, quartus: Small changes to fix synthesis.