Python's import system is stupid. Also fixed type errors in request parameters.