A RESTful API with Python Flask for security application