Refactoring done in python. Added a local webservice and database entries