bugfixes:
- fixed synchronization bug (PX is in ms using EX)
- allow initial loop to start in the INITIAL_LOCK_TIME (default is 2 * LOCK_TIME)
- removed duplicate set of the lock
pep8
Merge branch 'edmund-wagner-master'