changed avamar.py