message: [mint server] increase max mint amount. Format code with pep8
  bring mint amount closer to hard limit which is 18.5 trillion libras
  also format code with linter
diff: """
  -Dummy web server that proxies incoming requests to local client that owns association keys
  -
  -Installation:
  - virtualenv -p python3 ~/env
  - source ~/env/bin/activate
  - pip install flask gunicorn pexpect
  -
  -To run:
  - gunicorn --bind 0.0.0.0:8000 server
  -
  +Simple faucet server
  +Proxies mint requests to local client that owns association keys
  """
  -import flask
  -
  import decimal
  import os
  -import pexpect
  import platform
  import random
  import re
  import sys
  -print(sys.version)
  -print(platform.python_version())
  +import flask
  +import pexpect
  def setup_app():
  - application = flask.Flask(__name__)
  - ac_host = os.environ['AC_HOST']
  - ac_port = os.environ['AC_PORT']
  -
  + app = flask.Flask(__name__)
  # If we have comma separated list take a random one
  - ac_hosts = ac_host.split(',')
  + ac_hosts = os.environ['AC_HOST'].split(',')
  ac_host = random.choice(ac_hosts)
  + ac_port = os.environ['AC_PORT']
  + print(sys.version, platform.python_version())
  print("Connecting to ac on: {}:{}".format(ac_host, ac_port))
  - cmd = "/opt/libra/bin/client --host {} --port {} -m /opt/libra/etc/mint.key --validator_set_file /opt/libra/etc/trusted_peers.config.toml".format(
  - ac_host, ac_port)
  - application.client = pexpect.spawn(cmd)
  - application.client.expect("Please, input commands")
  - return application
  + cmd = "/opt/libra/bin/client --host {} --port {} -m {} -s {}".format(
  + ac_host,
  + ac_port,
  + "/opt/libra/etc/mint.key",
  + "/opt/libra/etc/trusted_peers.config.toml")
  + app.client = pexpect.spawn(cmd)
  + app.client.expect("Please, input commands")
  + return app
  application = setup_app()
  -MAX_MINT = 10 ** 12
  +MAX_MINT = 10 ** 19 # 10 trillion libras
  +
  @application.route("/")
  def send_transaction():
  @@ -56,13 +48,14 @@ def send_transaction():
  try:
  amount = decimal.Decimal(flask.request.args['amount'])
  - except:
  + except decimal.InvalidOperation:
  return 'Bad amount', 400
  if amount > MAX_MINT:
  - return 'Exceeded max mint amount of {}'.format(MAX_MINT / (10 ** 6)), 400
  + return 'Exceeded max amount of {}'.format(MAX_MINT / (10 ** 6)), 400
  - application.client.sendline("a m {} {}".format(address, amount / (10 ** 6)))
  + application.client.sendline(
  + "a m {} {}".format(address, amount / (10 ** 6)))
  application.client.expect("Mint request submitted", timeout=2)
  application.client.sendline("a la")
  