restructure server to be more inline with python standards