Php Framework User Input In Python For Loop