Great Refactoring pt1: Split avsp.py up in multiple files.