added timeout and eventlet to APImethod