Added support for variable port in Flask's testing server