started updating the code to current pyxb and django versions