When running one of the scripts from "tests" folder or a custom script I get:
<------------------------------------------CODE BEGIN--------------------------------------------------------------->
E:\Workspaces\pybot\tests>api_tests.py
Configuration variable 'retry_on_fail' is defined but unknown. Misspelled?
Configuration variable 'use_diskcache' is defined but unknown. Misspelled?
EF:\Python26\lib\site-packages\httplib2-0.4.0-py2.6.egg\httplib2\__init__.py:29: DeprecationWarning: the md5 module is deprecated; use hashlib instead
F:\Python26\lib\site-packages\httplib2-0.4.0-py2.6.egg\httplib2\__init__.py:44: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
Found 1 wikipedia:en processes running, including this one.
ERROR: Traceback (most recent call last):
  File "E:\Workspaces\pybot\pywikibot\data\api.py", line 208, in submit
    body=params)
  File "E:\Workspaces\pybot\pywikibot\comms\http.py", line 112, in request
    raise request.data
TypeError: a float is required

WARNING: Waiting 5 seconds before retrying.
ERROR: Traceback (most recent call last):
  File "E:\Workspaces\pybot\pywikibot\data\api.py", line 208, in submit
    body=params)
  File "E:\Workspaces\pybot\pywikibot\comms\http.py", line 112, in request
    raise request.data
TypeError: a float is required

WARNING: Waiting 10 seconds before retrying.

<------------------------------------------CODE END--------------------------------------------------------------->

Any ideas why?

I'll try replace.py later and post back.