remove unnecessary api object creation from server.py