class Entity(object):

    def __init__(self, id, db_connection, data=None):
        self.id = id
self.db_connection = db_connection
if data is None:
    pass
Using static methods in python - best practice