from flask import Flask

import config
import routes

from params import PI_BASE_URL


app = Flask(getattr(config, 'PI_PROJECT_NAME', 'PlugIT-Project'), static_folder='media', static_url_path='{}media'.format(PI_BASE_URL))


def load_actions(act_mod, mail_callback=None):
    routes.load_routes(app, act_mod, mail_callback)

@@ -92,16 +92,21 @@
 = Flask(
+%0A    
 getattr(
@@ -150,16 +150,20 @@
 oject'),
+%0A   
  static_
@@ -177,16 +177,20 @@
 'media',
+%0A   
  static_
@@ -227,16 +227,17 @@
 ASE_URL)
+%0A
 )%0A%0A%0Adef 
@@ -279,16 +279,272 @@
 =None):%0A
+    %22%22%22Initialize routes of the flask application.%0A%0A    Args:%0A        act_mod: The module with all actions%0A        mail_callback: A function to call when the proxy inform about a mail reply. The function must takes a request argument as parameter%0A    %22%22%22%0A%0A
     rout

Add docstring and better style in __init__.py