Make port dynamic in flask sample