Python While Loop For User Input In Php